package com.zhc.dejingapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 注塑压管报工明细表
 * </p>
 *
 * @author zhc
 * @since 2024-08-10
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("qing_fcmoroutingdetail")
@ApiModel(value = "QingFcmoroutingdetailEntity对象", description = "注塑压管报工明细表")
public class QingFcmoroutingdetailEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("表主键")
    @TableId(value = "detail_id", type = IdType.AUTO)
    private Long detailId;

    @ApiModelProperty("绑定行主键")
    @TableField("main_id")
    private Long mainId;

    @ApiModelProperty("数据ID")
    @TableField("qingApplyId")
    private Long qingApplyId;

    @ApiModelProperty("数量")
    @TableField("iQty")
    private Integer iQty;

    @ApiModelProperty("生成的条码")
    @TableField("barcodeStr")
    private String barcodeStr;

    @ApiModelProperty("件数，默认为1")
    @TableField("iNum")
    private Integer iNum;

    @ApiModelProperty("打印次数")
    @TableField("printFrequency")
    private Long printFrequency;


    @ApiModelProperty("最后打印时间")
    @TableField("lastPrintTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastPrintTime;

}
